import request from '@/utils/request'

// 查询商品成色列表
export function listQuality(query) {
  return request({
    url: '/share/quality/list',
    method: 'get',
    params: query
  })
}

// 查询商品成色详细
export function getQuality(qualityId) {
  return request({
    url: '/share/quality/' + qualityId,
    method: 'get'
  })
}

// 新增商品成色
export function addQuality(data) {
  return request({
    url: '/share/quality',
    method: 'post',
    data: data
  })
}

// 修改商品成色
export function updateQuality(data) {
  return request({
    url: '/share/quality',
    method: 'put',
    data: data
  })
}

// 删除商品成色
export function delQuality(qualityId) {
  return request({
    url: '/share/quality/' + qualityId,
    method: 'delete'
  })
}

// 导出商品成色
export function exportQuality(query) {
  return request({
    url: '/share/quality/export',
    method: 'get',
    params: query
  })
}